// 增加一个container的最大宽度为1280px，根据设计稿
@media screen and (min-width:1280px) {
    .container {
        width: 1280px;
    }
}

body {
    background-color: #f5f5f5;
}

.container {
    background-color: #fff;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: #666;
    text-decoration: none;

    &:hover {
        text-decoration: none;
    }
}

h4 {
    margin: 0;
}

p {
    margin-bottom: 0;
}

header {
    padding-left: 0px !important;

    .logo {
        text-align: center;
        background-color: #3794d6;

        span {
            // xs屏设置visble
            display: block;
            height: 50px;
            line-height: 50px;
            font-size: 18px;
            color: #fff;
        }

        img {
            // width: 100%;
            max-width: 100%;
        }
    }

    nav {
        border-bottom: 1px solid #ccc;
        background-color: #eee;

        ul {
            width: 100%;
            height: 100%;


            li {

                a {
                    display: block;
                    height: 50px;
                    line-height: 50px;
                    padding-left: 30px;
                    font-size: 16px;

                    &:hover {
                        color: #333;
                        background-color: #fff;

                    }

                    span {
                        vertical-align: middle;
                        margin-top: -2px;
                    }
                }
            }
        }
    }
}

article {
    ul.pics {
        width: 100%;

        li {
            float: left;
            width: 25%;
            height: 128px;

            &:nth-child(1) {
                width: 50%;
                height: 266px;
                padding-right: 10px;

                a {
                    p {
                        font-size: 20px;
                        line-height: 41px;
                    }
                }
            }

            &:nth-child(2),
            &:nth-child(3) {
                margin-bottom: 10px;
            }

            &:nth-child(2),
            &:nth-child(4) {
                padding-right: 5px;
            }

            &:nth-child(3),
            &:nth-child(5) {
                padding-left: 5px;
            }


            a {
                position: relative;
                display: block;
                height: 100%;

                img {
                    width: 100%;
                    height: 100%;
                }

                p {
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    width: 100%;
                    height: 41px;
                    padding-left: 10px;
                    font-size: 14px;
                    color: #fff;
                    background-color: rgba(0, 0, 0, .3);
                }
            }
        }
    }

    .news {
        margin-top: 10px;
        padding: 20px 0;
        border-top: 1px solid #ccc;

        ul {
            width: 100%;

            li {
                width: 100%;
                padding: 10px 10px 0px;
                border-bottom: 1px solid #ccc;

                &:first-child {
                    padding-top: 0px;
                }

                a {
                    .row {
                        .massage {

                            h3 {
                                margin-top: 0;
                                margin-bottom: 5px;
                            }

                            p {
                                i {
                                    font-style: normal;
                                }
                            }

                            .zhengwen {
                                color: #333;
                                margin: 5px 0 10px;
                            }

                        }


                        .massage_pic {
                            margin-bottom: 10px;

                            img {
                                width: 100%;
                            }
                        }
                    }
                }
            }
        }
    }
}

aside {
    ul {
        width: 100%;

        li {
            width: 100%;
        }

        .banner {

            a {
                img {
                    width: 100%;
                }
            }
        }

        .hot-search {
            margin-top: 15px;
            border: 1px solid #ccc;

            a {
                position: relative;
                display: block;
                padding: 40px 15px 20px;

                span {
                    position: absolute;
                    top: 0;
                    left: 10px;
                    border-radius: 0;
                }

                h4 {
                    margin-bottom: 8px;
                }

                p {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;

                }
            }
        }
    }
}

// md屏 设置
@media screen and (max-width:1199px) {
    article {}
}

// sm 屏设置
@media screen and (max-width:991px) {
    header {
        nav {
            li {
                float: left;
                width: 20%;
            }
        }
    }

    article {
        margin-top: 10px;

        .news {
            li {
                padding-bottom: 10px !important;
            }
        }
    }
}

// xs屏设置
@media screen and (max-width:767px) {
    header {

        nav {
            ul {
                li {
                    a {
                        padding-left: 3px;
                        font-size: 14px;
                        text-align: center;
                    }
                }
            }
        }
    }

    article {

        ul.pics {
            li {
                width: 50%;

                &:first-child {
                    width: 100%;
                    padding-bottom: 10px;
                    padding-right: 0px;
                }
            }
        }

        .news {
            h3 {
                font-size: 16px;
            }
        }
    }
}